-- GENERATED SPELL FOR [Mo'arg Forgefiend] --


function spell0_16946(pUnit, Event) --@Saw Blade,n/a--
pUnit:FullCastSpellOnTarget(32735,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16946', 500, 1)
end

function spell1_16946(pUnit, Event) --@Slime Spray,n/a--
pUnit:FullCastSpellOnTarget(36486,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16946', 14000, 1)
end

function Sorts_16946(pUnit, Event)
local choix_sorts_16946 = math.random(0, 1)
if choix_sorts_16946 == 0 then
pUnit:RegisterEvent('spell0_16946', 1, 1)
end
if choix_sorts_16946 == 1 then
pUnit:RegisterEvent('spell1_16946', 1, 1)
end
end

function mob16946_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16946', math.random(1500, 3000), 1)
end

function mob16946_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16946_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16946_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16946, 1, 'mob16946_Action')
RegisterUnitEvent(16946, 2, 'mob16946_Leave')
RegisterUnitEvent(16946, 3, 'mob16946_Kill')
RegisterUnitEvent(16946, 4, 'mob16946_Die')
